 <form action="" method="post" name="edit-form" class="edit-form" id="upload">
<div class="form-group">
	<label for="upload_mode">上传方式:</label>
	<div class="controls-box">

		<label class="lyear-radio radio-inline radio-primary">
			<input type="radio" name="upload_mode" value="public" {if condition="isset($system['upload_mode']) && $system['upload_mode'] == 'public'"}checked{/if}><span>本地</span>
		</label>
		
		<label class="lyear-radio radio-inline radio-primary">
			<input type="radio" name="upload_mode" value="aliyun" {if condition="isset($system['upload_mode']) && $system['upload_mode'] == 'aliyun'"} checked {/if}><span>阿里云OSS</span>
		</label>
		
		<label class="lyear-radio radio-inline radio-primary">
			<input type="radio" name="upload_mode" value="qiniu" {if condition="isset($system['upload_mode']) && $system['upload_mode'] == 'qiniu'"} checked {/if}><span>七牛云</span>
		</label>
		<!--
		<label class="lyear-radio radio-inline radio-primary">
			<input type="radio" name="upload_mode" value="" {if condition="isset($system['develop_mode']) && $system['develop_mode'] == 4"} checked {/if}><span>腾讯云</span>
		</label>
		-->
	</div>
</div>

<div class="upload_config upload_config_aliyun" {if condition="$system.upload_mode neq 'aliyun'"}style="display:none"{/if}>
	
	<div class="form-group">
	    <label for="aliyun_access_id">aliyun_access_id:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="aliyun_access_id" name="aliyun_access_id" value="{$system.aliyun_access_id}" placeholder="" >
	    </div>
	</div>
	
	<div class="form-group">
	    <label for="aliyun_access_secret">aliyun_access_secret:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="aliyun_access_secret" name="aliyun_access_secret" value="{$system.aliyun_access_secret}" placeholder="" >
	    </div>
	</div>
	
	<div class="form-group">
	    <label for="aliyun_bucket">aliyun_bucket:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="aliyun_bucket" name="aliyun_bucket" value="{$system.aliyun_bucket}" placeholder="" >
	    </div>
	</div>
	
	<div class="form-group">
	    <label for="aliyun_endpoint">aliyun_endpoint:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="aliyun_endpoint" name="aliyun_endpoint" value="{$system.aliyun_endpoint}" placeholder="" >
	    </div>
	</div>
	
</div>

<div class="upload_config upload_config_qiniu" {if condition="$system.upload_mode neq 'qiniu'"}style="display:none"{/if}>
	
	<div class="form-group">
	    <label for="qiniu_access_key">qiniu_access_key:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="qiniu_access_key" name="qiniu_access_key" value="{$system.qiniu_access_key}" placeholder="" >
	    </div>
	</div>
	
	<div class="form-group">
	    <label for="qiniu_secret_key">qiniu_secret_key:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="qiniu_secret_key" name="qiniu_secret_key" value="{$system.qiniu_secret_key}" placeholder="" >
	    </div>
	</div>
	
	<div class="form-group">
	    <label for="qiniu_bucket">qiniu_bucket:</label>
	    <div class="controls-box">
	        <input class="form-control" type="text" id="qiniu_bucket" name="qiniu_bucket" value="{$system.qiniu_bucket}" placeholder="" >
	    </div>
	</div>
	
</div>

<div class="form-group">
	<label for="image_url">图片访问地址:</label>
	<div class="controls-box">
		<input class="form-control" type="text" id="image_url" name="image_url" value="{$system.image_url}" placeholder="" >
	</div>
</div>

 <div class="form-group">
	<label for="upload_size">上传大小限制</label>
	<input class="form-control" type="text" id="upload_size" name="upload_size" value="{$system.upload_size}" placeholder="请输入上传大小限制" >
	<small class="help-block">单位：M</small>
</div>

<div class="form-group">
	<label for="upload_ext">允许上传的文件后缀</label>
	<input class="js-tags-input form-control" type="text" id="upload_ext" name="upload_ext" value="{$system.upload_ext}" >
	<small class="help-block">多个后缀用逗号隔开，不填写则不限制类型</small>
</div>
	
<div class="form-group">
	<input type="hidden" name="conf_type" value="2" />
	<button type="button" class="btn btn-primary m-r-5 btn-submit" form-id="upload">确 定</button>
</div>
</form>
